﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OOP
{ 
    class Program
    {
        static int Add(int a, int b)
        {
            return a + b;
        }

        static void Main(string[] args)
        {
            //int a, b;
            //Console.WriteLine("请输入两个数组");
            //while (true)
            //{
            //    try
            //    {
            //        a = Convert.ToInt32(Console.ReadLine());
            //        b = Convert.ToInt32(Console.ReadLine());
            //    }
            //    catch(FormatException e)
            //    {
            //        Console.WriteLine("你输入的数字非法，请重新输入");
            //        continue;
            //    }
            //    break;
            //}
            //Console.WriteLine(Add(a,b));

            Customer c1 = new Customer();   // c#中必须new
            c1.Age = 18;
            Console.WriteLine(c1.Age);
            //c1.Name = "张三";
            //Console.WriteLine(c1.Name);

            int a = 13;
            int b = 10; 
            
        }
    }
}
